/**@author: Administrator
 * @date: 2013-4-2
 * @Description:
 */
package org.benxiong.iplay.ui;

import java.util.ArrayList;
import java.util.List;

import org.benxiong.iplay.R;
import org.benxiong.iplay.ui.adapter.ConvListAdapter;

import android.os.Message;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;

/**
 * @author Administrator
 *
 */
public class ConversationListActivity extends BaseActivity implements OnItemClickListener{

	private ListView mListV;
	private ConvListAdapter mAdapter;
	/* (non-Javadoc)
	 * @see org.benxiong.iplay.ui.BaseActivity#initView()
	 */
	@Override
	protected void initView() {
		setContentView(R.layout.conversation_list);
		setActionBarLogoAsBackButton();
		
		mListV = (ListView) findViewById(R.id.con_list);
		
		mAdapter = new ConvListAdapter(this);
		List data = new ArrayList();
		data.add(1);
		data.add(2);
		data.add(3);
		data.add(4);
		data.add(5);
		mAdapter.addData(data);
		
		mListV.setAdapter(mAdapter);
		mListV.setOnItemClickListener(this);
	}

	/* (non-Javadoc)
	 * @see org.benxiong.iplay.ui.BaseActivity#onMessage(android.os.Message)
	 */
	@Override
	public void onMessage(Message msg) {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see org.benxiong.iplay.ui.BaseActivity#handleClick(int)
	 */
	@Override
	public void handleClick(int buttonId) {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see android.widget.AdapterView.OnItemClickListener#onItemClick(android.widget.AdapterView, android.view.View, int, long)
	 */
	@Override
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		jumpToActivity(ConversationActivity.class);
	}

}
